ValidatedShort

constructor(minValue: Short, maxValue: Short, widgetType: ValidatedNumber.WidgetType = WidgetType.SLIDER)

A validated short number with a default selected from the min of the allowable range.

Author

fzzyhmstrs

Since

0.2.0

Parameters

minValue

Short. the minimum allowed value, inclusive

maxValue

Short. the maximum allowed value, inclusive

widgetType

WidgetType defines what the config GUI widget looks like


constructor(defaultValue: Short)

an unbounded validated short number.

The validation will be limited to ensuring the value de/serializes as a short, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0

Parameters

defaultValue

Short. the default value of this wrapper


constructor()

an unbounded validated short number with default value 0.

The validation will be limited to ensuring the value de/serializes as a short, since there are no bounds.

The widget type is locked to WidgetType.TEXTBOX

Author

fzzyhmstrs

Since

0.2.0


constructor(defaultValue: Short, maxValue: Short, minValue: Short, widgetType: ValidatedNumber.WidgetType = if(maxValue == Short.MAX_VALUE || minValue == Short.MIN_VALUE) WidgetType.TEXTBOX else WidgetType.SLIDER)

Parameters

defaultValue

Short. the default value of this wrapper

maxValue

Short. the maximum allowed value, inclusive

minValue

Short. the minimum allowed value, inclusive